<?php
include_once("./_common.php");

$sql = "SELECT *
		  FROM QNA_record
  		 WHERE id = '$id'
		 order by q_date DESC";
;

$rst = sql_query($sql);

while($row = mysql_fetch_assoc($rst))
{
	$list[] = $row;
}

$result = "";

if (count($list) == 1)
{
	$result .= $list[0]['id']."<col>".$list[0]['qstr_id']."<col>".$list[0]['qstr_nm']."<col>".$list[0]['q_title']."<col>".$list[0]['q_content']."<col>".$list[0]['q_date']."<col>".$list[0]['rplr_id']."<col>".$list[0]['rplr_nm']."<col>".$list[0]['r_content']."<col>".$list[0]['r_date']."<col>END"."<row>";
}
else
{
	$result = "Database Error";
}

echo($result);
?>
